package log

import (
	"fmt"
	"log"
)

const color_red = uint8(iota + 91)

func Errorln(v ...any) {
	log.Printf("\x1b[%dm%s\x1b[0m\n", color_red, v)
}

func Println(v ...any) {
	log.Println(v...)
}

func Fatalln(v ...any) {
	log.Fatalln(v...)
}

func Infof(msg string, v ...any) {
	log.Printf(msg, v...)
}

func Errorf(msg string, v ...any) {
	log.Printf("\x1b[%dm%s\x1b[0m", color_red, fmt.Sprintf(msg, v...))
}
